package com.pisolution.actuator.client.registration;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 应用注册时的配置信息.
 *
 * @author sora
 * @version 0.1.0
 */
@ConfigurationProperties(prefix = "pier.actuator.client.application")
public class ApplicationConfig {
    // -------------------------------------------------------------------------------------------------
    //  配置单元 (基础配置)
    // -------------------------------------------------------------------------------------------------

    /** 应用名称. */
    @Value(value = "${spring.application.name:pier-service}")
    private String name = "pier-service";

    // -------------------------------------------------------------------------------------------------
    //  配置单元 (服务配置)
    // -------------------------------------------------------------------------------------------------

    /** 监控服务接入地址. */
    private String endpoint = "";

    // -------------------------------------------------------------------------------------------------
    //  属性访问
    // -------------------------------------------------------------------------------------------------

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEndpoint() {
        return this.endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }
}
